package com.ews.onlineexchange.service.comparator;

import java.util.Comparator;

import com.ews.onlineexchange.model.Trade;

/**
 * 评价分数计算机
 * 高分排位靠前
 */
public class RandomComparator implements Comparator<Trade> {

	@Override
	public int compare(Trade arg0, Trade arg1) {		
		int randomInt = (int)(Math.random() * 10);
		return randomInt - 5 >= 0 ? 1 : -1;
	}

}
